<template>
	<router-view />
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'

const router = useRouter()
let flag = navigator.userAgent.match(
	/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
)
if (flag) {
	router.push('/inform')
}
</script>

<style lang="less" scoped></style>
